﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.CMS263.PO;
using Com.CMS263.DAO;

namespace Com.CMS263.BLL
{
    public class AboutHelpBLL
    {
        public AboutHelpBLL(){} 

        AboutHelpDAO dao = new AboutHelpDAO();
        public bool Add(AboutHelp help)
        {
            return dao.Add(help);
        }
        public AboutHelp GetAboutHelpById(int id)
        {
            return dao.GetAboutHelpById(id);
        }
        public IList<AboutHelp> GetAllAboutHelp(int typeId)
        {
            return dao.GetAllAboutHelp(typeId);
        }
        public bool ModifyAboutHelp(AboutHelp help)
        {
            return dao.ModifyAboutHelp(help);
        }
        public bool DeleteAboutHelpById(int id)
        {
            return dao.DeleteAboutHelpById(id);
        }
        public AboutHelp GetAboutHelpByTypeAndTitle(int type, string title)
        {
            return dao.GetAboutHelpByTypeAndTitle(type, title);
        }


    }
}
